//
//  ViewController.m
//  顶部视图+放大
//
//  Created by 周成龙 on 17/2/15.
//  Copyright © 2017年 ZCL. All rights reserved.
//

#import "ViewController.h"
#import "ZHeaderViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)next:(id)sender {
    ZHeaderViewController *vc = [[ZHeaderViewController alloc] init];
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    self.automaticallyAdjustsScrollViewInsets = NO;
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
